﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NeedMaterialShow.aspx.cs" Inherits="weba.Sales.NeedMaterialShow" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" background="../Images/tab_05.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="30">
                                <img src="../Images/tab_03.gif" width="12" height="30" />
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="46%" valign="middle">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td>
                                                        <div align="center">
                                                            <img src="../images/tb.gif" width="16" height="16" /></div>
                                                    </td>
                                                    <td width="95%">
                                                        <span class="titleBold12px">查看用料单详情</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%" align="right">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" height="30">
                                <img src="../Images/tab_07.gif" width="16" height="30" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="8" background="../images/tab_12.gif">
                                &nbsp;
                            </td>
                            <td>
                                <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="2" align="center">
                                            <asp:Label ID="lblSalesOrderID" runat="server" Visible="False"></asp:Label>
                                            <asp:Label ID="lblRootDepartmentID" runat="server" Visible="False"></asp:Label>
                                            <br />
                                            <asp:DataList ID="myDataList" runat="server" DataKeyField="NeedMaterialID" 
                                                Width="100%" onitemdatabound="myDataList_ItemDataBound">
                                                <ItemTemplate>
                                                    &nbsp;经办人：<asp:Label ID="lblManager" runat="server"></asp:Label>
                                                    &nbsp;用料单日期：<asp:Label ID="lblDateOrder" runat="server"></asp:Label>
                                                    &nbsp;提交状态：<asp:Label ID="lblStatusSubmit" runat="server"></asp:Label>
                                                    订货状态：<asp:Label ID="lblStatusPurchaseMaterial" runat="server"></asp:Label>
                                                    <br />
                                                    <asp:GridView ID="myGridViewNeedMaterialDetail" runat="server" AutoGenerateColumns="False" 
                                                        DataKeyNames="DetailID,MaterialID,ManufacturerID" Width="100%" 
                                                        OnRowDataBound="myGridViewNeedMaterialDetail_RowDataBound">
                                                        <Columns>
                                                            <asp:BoundField DataField="DetailID" HeaderText="ID" />
                                                            <asp:BoundField DataField="Name" HeaderText="货号" />
                                                            <asp:TemplateField HeaderText="厂家代码">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblManufacturerName" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="UnitPrice" DataFormatString="{0:c}" HeaderText="单价" />
                                                            <asp:BoundField DataField="Quantity" HeaderText="数量" />
                                                            <asp:BoundField DataField="Subtotal" DataFormatString="{0:c}" HeaderText="小计" />
                                                        </Columns>
                                                    </asp:GridView>
                                                    <br />
                                                </ItemTemplate>
                                            </asp:DataList>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center">
                                            <br />
                                            <asp:Button ID="btnClose" runat="server" Font-Size="16px" Height="30px" 
                                                            Text="关闭" Width="100px" OnClientClick="window.close();" />
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="8" background="../images/tab_15.gif">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="35" background="../images/tab_19.gif">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="12" height="35">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td align="center">
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
